home *** CD-ROM | disk | FTP | other *** search
- // Copyright (C) 1997-2002 Alias|Wavefront,
- // a division of Silicon Graphics Limited.
- //
- // The information in this file is provided for the exclusive use of the
- // licensees of Alias|Wavefront. Such users have the right to use, modify,
- // and incorporate this code into other products for purposes authorized
- // by the Alias|Wavefront license agreement, without fee.
- //
- // ALIAS|WAVEFRONT DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE,
- // INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO
- // EVENT SHALL ALIAS|WAVEFRONT BE LIABLE FOR ANY SPECIAL, INDIRECT OR
- // CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE,
- // DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
- // TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
- // PERFORMANCE OF THIS SOFTWARE.
- //
- //
- // Alias|Wavefront Script File
- // MODIFY THIS AT YOUR OWN RISK
- //
- // Creation Date: 13 April 1997
- // Author: gf
- //
- //
- // Procedure Name:
- // DynCreateFieldsMenu
- //
- // Description:
- // Create the DYNAMICS->CreateFields
- //
- // Input Arguments:
- // parent to parent the menu to.
- //
- // Return Value:
- // None.
- //
-
-
- global proc DynCreateFieldsMenu( string $parent )
- {
- setParent -m $parent;
- if( `menu -q -ni $parent` != 0 ) {
- //
- // Menu is built already - just return
- //
- return;
- }
-
- menuItem -l "Air"
- -annotation "Air: Create an air field. Select objects to be affected by the field"
- -c "Air"
- -dmc "performDynamics 1 Air 2"
- -i "posAir.xpm"
- createAirItem;
- menuItem -optionBox true -i "posAir.xpm"
- -annotation "Air Option Box"
- -l "Air Option Box"
- -c "AirOptions"
- createAirDialogItem;
-
- menuItem -l "Drag"
- -annotation "Drag: Create a drag field. Select objects to be affected by the field"
- -c "Drag"
- -dmc "performDynamics 1 Drag 2"
- -i "posDrag.xpm"
- createDragItem;
- menuItem -optionBox true -i "posDrag.xpm"
- -annotation "Drag Option Box"
- -l "Drag Option Box"
- -c "DragOptions"
- createDragDialogItem;
-
- menuItem -l "Gravity"
- -annotation "Gravity: Create a gravity field. Select objects to be affected by the field"
- -c "Gravity"
- -dmc "performDynamics 1 Gravity 2"
- -i "posGravity.xpm"
- createGravityItem;
- menuItem -optionBox true -i "posGravity.xpm"
- -annotation "Gravity Option Box"
- -l "Gravity Option Box"
- -c "GravityOptions"
- createGravityDialogItem;
-
- menuItem -l "Newton"
- -annotation "Newton: Create a newton field. Select objects to be affected by the field"
- -c "Newton"
- -dmc "performDynamics 1 Newton 2"
- -i "posNewton.xpm"
- createNewtonItem;
- menuItem -optionBox true -i "posNewton.xpm"
- -annotation "Newton Option Box"
- -l "Newton Option Box"
- -c "NewtonOptions"
- createNewtonDialogItem;
-
- menuItem -l "Radial"
- -annotation "Radial: Create a radial field. Select objects to be affected by the field"
- -c "Radial"
- -dmc "performDynamics 1 Radial 2"
- -i "posRadial.xpm"
- createRadialItem;
- menuItem -optionBox true -i "posRadial.xpm"
- -annotation "Radial Option Box"
- -l "Radial Option Box"
- -c "RadialOptions"
- createRadialDialogItem;
-
- menuItem -l "Turbulence"
- -annotation "Turbulence: Create a turbulence field. Select objects to be affected by the field"
- -c "Turbulence"
- -dmc "performDynamics 1 Turbulence 2"
- -i "posTurbulence.xpm"
- createTurbulenceItem;
- menuItem -optionBox true -i "posTurbulence.xpm"
- -annotation "Turbulence Option Box"
- -l "Turbulence Option Box"
- -c "TurbulenceOptions"
- createTurbulenceDialogItem;
-
- menuItem -l "Uniform"
- -annotation "Uniform: Create a unform field. Select objects to be affected by the field"
- -c "Uniform"
- -dmc "performDynamics 1 Uniform 2"
- -i "posUniform.xpm"
- createUniformItem;
- menuItem -optionBox true -i "posUniform.xpm"
- -annotation "Uniform Option Box"
- -l "Uniform Option Box"
- -c "UniformOptions"
- createUniformDialogItem;
-
- menuItem -l "Vortex"
- -annotation "Vortex: Create a vortex field. Select objects to be affected by the field"
- -c "Vortex"
- -dmc "performDynamics 1 Vortex 2"
- -i "posVortex.xpm"
- createVortexItem;
- menuItem -optionBox true -i "posVortex.xpm"
- -annotation "Vortex Option Box"
- -l "Vortex Option Box"
- -c "VortexOptions"
- createVortexDialogItem;
-
- menuItem -l "Volume Axis"
- -annotation "Volume Axis: Create a volume axis field. Select objects to be affected by the field"
- -c "VolumeAxis"
- -dmc "performDynamics 1 VolumeAxis 2"
- -i "posVolumeAxis.xpm"
- createVolumeAxisItem;
- menuItem -optionBox true
- -i "posVolumeAxis.xpm"
- -annotation "Volume Axis Option Box"
- -l "Volume Axis Option Box"
- -c "VolumeAxisOptions"
- createVolumeAxisDialogItem;
-
- menuItem -d true;
-
- menuItem -l "Use Selected as Source of Field"
- -annotation "Use Selected as Source of Field: Select field, then select object to be its source"
- -c "AttachSelectedAsSourceField"
- addDynamicItem;
-
- menuItem -l "Affect Selected Object(s)"
- -annotation "Affect Selected Object(s): Select fields and objects to be affected by the fields"
- -c "AffectSelectedObject"
- -i "connectField.xpm"
- connFieldItem;
-
- }
-
-
-